# 2024/2/1 19:27 HFL
import requests

from common.HttpRequests import HttpRequests
# TP商城上传头像接口
url = 'http://testingedu.com.cn:8000/index.php/home/Uploadify/imageUp/savepath/head_pic/pictitle/banner/dir/images.html'
datas = {
    'id':'WU_FILE_0',
    'name':'001.png'
}
files = {'file' :("001.png",open(r"C:\Users\HiWin10\Pictures\Camera Roll\001.png",'rb'),'image/png')}
# result = requests.post(url=url,data=datas,files=files)
# print(result.text)

res = HttpRequests()(method='POST',url=url,data=datas,files=files)
print(res.text)